package com.lpb.spring.lpbspring.context;

import com.lpb.spring.lpbspring.ioc.BeanDefinitionRegistry;
import com.lpb.spring.lpbspring.ioc.BeanPostProcessor;

/**
 * @ClassName AnnotationApplicationContext
 * @Description TODO
 * @date 2022/12/19 01:26
 * @Version 1.0
 * @authoe linpengbo
 */
public class AnnotationApplicationContext extends AbstractApplicationContext{


    public  AnnotationApplicationContext(String... basePackages) throws Exception {
        super();
        //扫描 解析注解 注册bean定义
        new ClassPathBeanDefinitionScanner((BeanDefinitionRegistry) this.beanFactory).scan(basePackages);
        //注册bean
        refresh();
    }



}
